package com.qf.fmcommodity.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.fmcommodity.user.entity.IndexImg;
import com.qf.fmcommodity.user.mapper.IndexImgMapper;
import com.qf.fmcommodity.user.service.IIndexImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 轮播图  服务实现类
 * </p>
 *
 * @author 苇名一心
 * @since 2023-02-13
 */
@Service
public class IndexImgServiceImpl extends ServiceImpl<IndexImgMapper, IndexImg> implements IIndexImgService {

    @Override
    public List<IndexImg> getIndeximg() {
        List<IndexImg> data = list(new LambdaQueryWrapper<IndexImg>().eq(IndexImg::getStatus,1));
        return data;
    }
}
